package com.erp.shop.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 卖家店铺授权业务对象 erp_seller_store_empower
 *
 * @author erp
 * @date 2023-03-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpSellerStoreEmpowerBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 店铺名称
     */
    @NotBlank(message = "店铺名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String storeName;

    /**
     * 店铺类型 1公司运营 2代运营 3自运营
     */
    private String storeType;

    /**
     * 店铺邮箱
     */
    private String storeEmail;

    /**
     * 店铺账户
     */
    @NotBlank(message = "店铺账户不能为空", groups = { AddGroup.class, EditGroup.class })
    private String storeUserName;

    /**
     * 店铺密码
     */
    private String storePassWord;

    /**
     * 店铺电话
     */
    private String storePhone;

    /**
     * 是否授权（0否 1是）
     */
    private String isEmpower;

    /**
     * 授权时间
     */
    private Date empowerTime;
    /**
     * 过期时间
     */
    private Date expireTime;

    /**
     * 是否需要退返运费
     */
    private Integer isRetuenFreight;

    private Integer isAutoPublish;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 乐观锁
     */
    private String revision;

    /**
     * 店铺开通时间
     */
    private Date openTime;

    private String delFlag;


    /**
     * 上级代理id
     */
    private Long parentAgentId;
    /**
     * 上级公司id
     */
    private Long parentBranchId;
    

}
